package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2020-11-15
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crowdsource_project_match")
public class CrowdsourceProjectMatch extends Model<CrowdsourceProjectMatch> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 公司id
     */
    private Integer compid;
    /**
     * 项目id
     */

    private Integer projectid;
    /**
     * 撮合方公司id
     */
    @TableField("match_compid")
    private Integer matchCompid;
    /**
     * 撮合方项目id
     */
    @TableField("match_projectid")
    private Integer matchProjectid;
    /**
     * 撮合时间
     */
    @TableField("match_time")
    private Date matchTime;
    /**
     * 撮合状态 1:已创建 2:已撮合
     */
    private Integer state;
    private Date createtime;
    private Date updatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
